﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cofe.Core.Security;

namespace Cofe.Web
{
    public static class VolumePermissionExtensions
    {
        public static PermissionType ToPermissionType(this VolumePermission vp)
        {
            return (PermissionType)(int)vp;
        }

        public static VolumePermission ToVolumePermission(this PermissionType pt)
        {
            return (VolumePermission)(int)pt;
        }
    }

}
